AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Handles an exception for the given execution context.

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public abstract Boolean HandleException(
         IExecutionContext executionContext,
         T exception
)

Parameters

executionContext
Type: Amazon.Runtime.IExecutionContext

The execution context, it contains the request and response context.

exception
Type: T

The exception to handle.

Return Value


Type: Boolean
Returns a boolean value which indicates if the original exception should be rethrown. This method can also throw a new exception to replace the original exception.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5